function UpdateCustomer(){
	var showCustomers = new ShowCustomers();
	this.update=function(){
		var id  =  $("input[name='mmId']").val();
		var name = $("input[name='nname']").val();
		var age = $("input[name='aage']").val();
		var sal = $("input[name='ssal']").val();
		var sex = $("input[name='ssex']:checked").val();
		var birth = $("input[name='bbirth']").val();
		customer = {};
		customer.id=id;
		customer.name=name;
		customer.age=age;
		customer.sal=sal;
		customer.sex=sex;
		customer.birth=birth;
		$.ajax({
			type:"POST",
			url:"update",
			data:JSON.stringify(customer),
			contentType:"application/json"
		})
		.done(function(msg){
			showCustomers.show();
		});
	}
}